import { getCookie } from '@/utils/utils';
import { request } from 'umi';

export async function submitAction(params: any): Promise<API.IResponse<any>> {
  const token = getCookie('token');
  return request(`/bpm/api/process/operate`, {
    method: 'PUT',
    data: params,
    headers: {
      Authorization: `Bearer ${token}`,
    },
  });
}
